#include "MainWindow.h"
#include "Application.h"
#include <wx/msw/private.h>
#include <time.h>

BEGIN_EVENT_TABLE(MainWindow, wxFrame)
	EVT_CLOSE(MainWindow::OnClose)
END_EVENT_TABLE()


MainWindow::MainWindow(const wxString &title) : wxFrame(NULL,wxID_ANY,title,wxDefaultPosition,wxSize(620,730)) 
{
	SetMaxSize(wxSize(620,730));
	SetMinSize(wxSize(620,730));

	srand(time(NULL));
}

void MainWindow::OnClose(wxCloseEvent &evt)
{
	Application *app = (Application*)wxTheApp;
	app->ActivateRenderLoop(false);
	evt.Skip();
}

